package com.example.test.springdemo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "3.2.2 后台用户管理表")
public class AdminUser implements Serializable {
    @ApiModelProperty(value = "主键",dataType = "Long")
    private Long id;

    @ApiModelProperty(value = "用户名",dataType = "String")
    private String username;

    @ApiModelProperty(value = "密码",dataType = "String")
    private String password;

    @ApiModelProperty(value = "邮箱",dataType = "String")
    private String email;

    @ApiModelProperty(value = "电话号码",dataType = "String")
    private String phone;

    @ApiModelProperty(value = "启用状态，0->启用，1->禁用",dataType = "Byte")
    private Byte status;

    @ApiModelProperty(value = "创建当前用户的用户ID",dataType = "Long")
    private Long adminUserId;

    @ApiModelProperty(value = "创建当前用户的用户",dataType = "String")
    private String gmtCreateUser;

    @ApiModelProperty(value = "修改当前用户的用户",dataType = "String")
    private String gmtModifyUser;

    @ApiModelProperty(value = "修改用户的时间",dataType = "Date")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtCreateTime;

    @ApiModelProperty(value = "修改用户的时间",dataType = "Date")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtModifyTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Long getAdminUserId() {
        return adminUserId;
    }

    public void setAdminUserId(Long adminUserId) {
        this.adminUserId = adminUserId;
    }

    public String getGmtCreateUser() {
        return gmtCreateUser;
    }

    public void setGmtCreateUser(String gmtCreateUser) {
        this.gmtCreateUser = gmtCreateUser;
    }

    public String getGmtModifyUser() {
        return gmtModifyUser;
    }

    public void setGmtModifyUser(String gmtModifyUser) {
        this.gmtModifyUser = gmtModifyUser;
    }

    public Date getGmtCreateTime() {
        return gmtCreateTime;
    }

    public void setGmtCreateTime(Date gmtCreateTime) {
        this.gmtCreateTime = gmtCreateTime;
    }

    public Date getGmtModifyTime() {
        return gmtModifyTime;
    }

    public void setGmtModifyTime(Date gmtModifyTime) {
        this.gmtModifyTime = gmtModifyTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", password=").append(password);
        sb.append(", email=").append(email);
        sb.append(", phone=").append(phone);
        sb.append(", status=").append(status);
        sb.append(", adminUserId=").append(adminUserId);
        sb.append(", gmtCreateUser=").append(gmtCreateUser);
        sb.append(", gmtModifyUser=").append(gmtModifyUser);
        sb.append(", gmtCreateTime=").append(gmtCreateTime);
        sb.append(", gmtModifyTime=").append(gmtModifyTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
